<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>student</title>
</head>
<body>
{% if student %}
    学生姓名:{{ student.name }} &nbsp;&nbsp;
    学生年龄:{{ student.age }} &nbsp;&nbsp;
    学生性别:{{ student.get_gender_display }} &nbsp;&nbsp;
    学生电话:{{ student.phone }} &nbsp;&nbsp;
{% else %}
    查无此人
{% endif %}


</body>
</html>